package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="ZFZBTZ_ZT"
 *     
*/
public class ZfzbtzZt implements Serializable {

    /** identifier field */
    private String tzztbh;

    /** persistent field */
    private String nd;

    /** nullable persistent field */
    private String tzmc;

    /** persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String sjzt;

    /** nullable persistent field */
    private String cjsj;

    /** nullable persistent field */
    private String xdsj;

    /** nullable persistent field */
    private String xjzt;

    /** nullable persistent field */
    private String qrsj;

    /** nullable persistent field */
    private String sbsj;

    /** nullable persistent field */
    private String sjtzztbh;

    /** nullable persistent field */
    private String bhyy;

    /** nullable persistent field */
    private String bz;

    /** nullable persistent field */
    private String zjtzztbh;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public ZfzbtzZt(String tzztbh, String nd, String tzmc, String dwbh, String sjzt, String cjsj, String xdsj, String xjzt, String qrsj, String sbsj, String sjtzztbh, String bhyy, String bz, String zjtzztbh, String zt1, String zt2) {
        this.tzztbh = tzztbh;
        this.nd = nd;
        this.tzmc = tzmc;
        this.dwbh = dwbh;
        this.sjzt = sjzt;
        this.cjsj = cjsj;
        this.xdsj = xdsj;
        this.xjzt = xjzt;
        this.qrsj = qrsj;
        this.sbsj = sbsj;
        this.sjtzztbh = sjtzztbh;
        this.bhyy = bhyy;
        this.bz = bz;
        this.zjtzztbh = zjtzztbh;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public ZfzbtzZt() {
    }

    /** minimal constructor */
    public ZfzbtzZt(String tzztbh, String nd, String dwbh) {
        this.tzztbh = tzztbh;
        this.nd = nd;
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="HFZTBH"
     *         
     */
    public String getTzztbh() {
        return this.tzztbh;
    }

    public void setTzztbh(String tzztbh) {
        this.tzztbh = tzztbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="HFMC"
     *             length="50"
     *         
     */
    public String getTzmc() {
        return this.tzmc;
    }

    public void setTzmc(String tzmc) {
        this.tzmc = tzmc;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="SJZT"
     *             length="2"
     *         
     */
    public String getSjzt() {
        return this.sjzt;
    }

    public void setSjzt(String sjzt) {
        this.sjzt = sjzt;
    }

    /** 
     *            @hibernate.property
     *             column="CJSJ"
     *             length="14"
     *         
     */
    public String getCjsj() {
        return this.cjsj;
    }

    public void setCjsj(String cjsj) {
        this.cjsj = cjsj;
    }

    /** 
     *            @hibernate.property
     *             column="XDSJ"
     *             length="14"
     *         
     */
    public String getXdsj() {
        return this.xdsj;
    }

    public void setXdsj(String xdsj) {
        this.xdsj = xdsj;
    }

    /** 
     *            @hibernate.property
     *             column="XJZT"
     *             length="2"
     *         
     */
    public String getXjzt() {
        return this.xjzt;
    }

    public void setXjzt(String xjzt) {
        this.xjzt = xjzt;
    }

    /** 
     *            @hibernate.property
     *             column="QRSJ"
     *             length="14"
     *         
     */
    public String getQrsj() {
        return this.qrsj;
    }

    public void setQrsj(String qrsj) {
        this.qrsj = qrsj;
    }

    /** 
     *            @hibernate.property
     *             column="SBSJ"
     *             length="14"
     *         
     */
    public String getSbsj() {
        return this.sbsj;
    }

    public void setSbsj(String sbsj) {
        this.sbsj = sbsj;
    }

    /** 
     *            @hibernate.property
     *             column="SJHFZTBH"
     *             length="50"
     *         
     */
    public String getSjtzztbh() {
        return this.sjtzztbh;
    }

    public void setSjtzztbh(String sjtzztbh) {
        this.sjtzztbh = sjtzztbh;
    }

    /** 
     *            @hibernate.property
     *             column="BHYY"
     *             length="400"
     *         
     */
    public String getBhyy() {
        return this.bhyy;
    }

    public void setBhyy(String bhyy) {
        this.bhyy = bhyy;
    }

    /** 
     *            @hibernate.property
     *             column="BZ"
     *             length="400"
     *         
     */
    public String getBz() {
        return this.bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    /** 
     *            @hibernate.property
     *             column="ZJHFZTBH"
     *             length="50"
     *         
     */
    public String getZjtzztbh() {
        return this.zjtzztbh;
    }

    public void setZjtzztbh(String zjtzztbh) {
        this.zjtzztbh = zjtzztbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("tzztbh", getTzztbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ZfzbtzZt) ) return false;
        ZfzbtzZt castOther = (ZfzbtzZt) other;
        return new EqualsBuilder()
            .append(this.getTzztbh(), castOther.getTzztbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getTzztbh())
            .toHashCode();
    }

}
